<template>
    <div class="select-box" :class="is_show ? 'selected' : ''" @click.stop="$emit('click')">
            <span v-if="is_show"><slot>1</slot></span>
    </div>
</template>

<script>
export default {
    name: "select-box",
    props: {
        is_show: {
            type: Boolean,
            default: false
        }
    }
}
</script>

<style scoped lang="less">
    @import "@/theme.less";
    .select-box{
        position: absolute;
        right: 10px;
        bottom:10px;
        width: 25px;
        height: 25px;
        border-radius: 13px;
        box-sizing: border-box;
        border: 3px solid @font-color2;
        text-align: center;
        line-height: 20px;
        color: #fff;
        &.selected{
            border-color: @main-color1;
            background: @main-color1;
        }
    }
</style>
